/* 全局样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 头部导航样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-logo .logo-img {
    height: 50px;
}
.header-nav {
    display: flex;
    gap: 2.5rem;
}
.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.nav-item:hover, .nav-item.active {
    color: #e1251b;
    border-bottom-color: #e1251b;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-input {
    width: 180px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #e1251b;
}
.search-btn {
    height: 36px;
    padding: 0 18px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-btn:hover {
    background-color: #c81623;
}

/* 主体内容样式 */
.main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2%;
}

/* 新闻板块通用样式 */
.news-section {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.section-title h2 {
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e1251b;
}
.more-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.more-link:hover {
    color: #e1251b;
}
.news-list {
    list-style: none;
}
.news-item {
    padding: 1rem 0;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.3s ease;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item:hover {
    background-color: #fafafa;
}
.news-title {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.news-title:hover {
    color: #e1251b;
}
.news-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* 新闻详情页样式 */
.news-detail {
    width: 100%;
}
.detail-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
.detail-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1.5rem;
}
.detail-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}
.detail-content p {
    margin-bottom: 1rem;
    text-indent: 2em;
}
.back-link {
    display: inline-block;
    text-decoration: none;
    color: #e1251b;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: #c81623;
}

/* 页脚样式 */
.footer {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    background-color: #333;
    color: #fff;
    margin-top: 3rem;
}
.footer-column {
    flex: 1;
}
.footer-column h3 {
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    .header-nav {
        gap: 1.5rem;
    }
    .header-search .search-input {
        width: 150px;
    }
    .footer {
        flex-direction: column;
        gap: 2rem;
    }
}